package main

import "fmt"

/*
* Author: JacksonCoder
* CreateTime: 2025/5/19
 */

func Add1(a int, arg ...int) int{
	var sum int = a
	for i := 0; i < len(arg); i++{
		sum += arg[i]
	}

	return sum
}

func concat(a string, arg ...string) (result string){
	result = a
	for i := 0; i < len(arg); i++{
		result += arg[i]
	}
	return
}

func main(){
	sum := Add1(10,12,196,145)
	fmt.Println(sum)

	res := concat("hello", ",","world")
	fmt.Println(res)
}